<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>{:C('SERVER_NAME')}</title>
        <link rel="stylesheet" type="text/css" href="__PUBLICADMIN__/css/style.css">
    </head>
    <body>
        <div class="content p50">
            <div class="content-title">
                <h2>云曝光套餐列表</h2>
                <div class="content-right">
                    <form id="sousuo" action="{:U(ExposurePackage/ExposurePackageList)}" method="get">
                        <div class="search fl"><input type="text" value="{$Think.get.package_name}"  name="package_name" placeholder="套餐名"></div>
                        <a href="javascript:$('#sousuo').submit();" class="search-btn fl"></a>
                    </form>
                </div>
            </div>
            <div class="p80">
                <table class="table">
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th>套餐名</th>
                            <th>价格</th>
                            <th>提交时间</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                         <notempty  name="exposurePackage">
                          
                                <volist name="exposurePackage" id="ep">
                                    <tr>
                                        <td>{$ep.id}</td>
                                        <td>{$ep.package_name}</td>
                                        <td>{$ep.price}</td>
                                        <td>{$ep.exposure_time}</td>
                                        <td><a href="javascript:;" class="del" id='{$ep[id]}'>删除</a>|<a href="{:U('ExposurePackage/exposurePackageEdit',array(id=>$ep[id]))}">修改</a></td>
                                    </tr>
                                </volist>
                                 <else/>
                            <tr><td colspan="5">暂无数据</td></tr>
                        </notempty >
                    </tbody>
                </table>
                <div class="add-box"><a href="{:U('ExposurePackage/exposurePackageEdit')}" class="add" target="iframe_a">新增</a></div>
                <div class="page">
                    {$page}
                </div>
            </div>
        </div>	

    </div>

    
<include file="Public/ok" />
<include file="Public/okcancel" />
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="__PUBLICADMIN__/js/page.js"></script>
<script type="text/javascript">

    $(function () {
        $(".del").click(function () {
            var id = $(this).prop("id");
                
            modelConfirm("确定删除？", function () {
 
                $.post("{:U('ExposurePackage/exposurePackageDel')}", {id: id}, function (data) {
                    
                  prompting(data.info);
                    if (data.status == 200) {
                        setTimeout(function () {
                            window.location.href = "{:U(ExposurePackage/ExposurePackageList)}";
                        }, 3000);
                    }
                }, 'json');
            }, function () {    
                return;
            });
        });
    });
</script>
</body>
</html>
